package com.sunwayworld.baseline.framework.deviceDocking.dto;

import io.netty.channel.ChannelHandlerContext;

/**
 * 仪器对接DTO
 */
public class MessageDTO {

    private String type;  // 仪器类型
    private ChannelHandlerContext ctx;  // TCP/IP 通道
    private String data;  // 数据

    public MessageDTO(String type, ChannelHandlerContext ctx, String data) {
        this.type = type;
        this.ctx = ctx;
        this.data = data;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public ChannelHandlerContext getCtx() {
        return ctx;
    }

    public void setCtx(ChannelHandlerContext ctx) {
        this.ctx = ctx;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
